package org.gourpg.model.dictionary;


import com.google.common.base.MoreObjects;
import com.google.common.base.Objects;

/**
 * 字典树配置实体
 */

public class NounDetail {
    /**
     * 字典组
     */
    private String nounItem;
    /**
     * 字典项目
     */
    private String nounValue;
    /**
     * 字典上级
     */
    private String nounParent;
    /**
     * 字典名称
     */
    private String nounName;
    /**
     * 字典说明
     */
    private String nounRemark;
    /**
     * 字典是否可选择(Y/N)
     */
    private String nounIsChoose;
    public NounDetail() {
    }

    public NounDetail(String nounItem, String nounValue, String nounParent, String nounName, String nounRemark, String nounIsChoose) {
        this.nounItem = nounItem;
        this.nounValue = nounValue;
        this.nounParent = nounParent;
        this.nounName = nounName;
        this.nounRemark = nounRemark;
        this.nounIsChoose = nounIsChoose;
    }

    @Override
    public String toString() {
        return MoreObjects.toStringHelper(this)
                .add("nounItem", nounItem)
                .add("nounValue", nounValue)
                .add("nounParent", nounParent)
                .add("nounName", nounName)
                .add("nounRemark", nounRemark)
                .add("nounIsChoose", nounIsChoose)
                .toString();
    }

    @Override
    public boolean equals(Object o) {
        if (o == null || getClass() != o.getClass()) return false;
        NounDetail that = (NounDetail) o;
        return Objects.equal(getNounItem(), that.getNounItem()) && Objects.equal(getNounValue(), that.getNounValue()) && Objects.equal(getNounParent(), that.getNounParent()) && Objects.equal(getNounName(), that.getNounName()) && Objects.equal(getNounRemark(), that.getNounRemark()) && Objects.equal(getNounIsChoose(), that.getNounIsChoose());
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(getNounItem(), getNounValue(), getNounParent(), getNounName(), getNounRemark(), getNounIsChoose());
    }

    public String getNounItem() {
        return nounItem;
    }

    public void setNounItem(String nounItem) {
        this.nounItem = nounItem;
    }

    public String getNounValue() {
        return nounValue;
    }

    public void setNounValue(String nounValue) {
        this.nounValue = nounValue;
    }

    public String getNounParent() {
        return nounParent;
    }

    public void setNounParent(String nounParent) {
        this.nounParent = nounParent;
    }

    public String getNounName() {
        return nounName;
    }

    public void setNounName(String nounName) {
        this.nounName = nounName;
    }

    public String getNounRemark() {
        return nounRemark;
    }

    public void setNounRemark(String nounRemark) {
        this.nounRemark = nounRemark;
    }

    public String getNounIsChoose() {
        return nounIsChoose;
    }

    public void setNounIsChoose(String nounIsChoose) {
        this.nounIsChoose = nounIsChoose;
    }
}
